<html>
	<head>
		<meta charset="utf-8"></meta>
		<title>BProgressBar</title>
		<link href="./style.css" rel="stylesheet" type="text/css"/>
	</head>
	<body>
		<div class="class" name="BProgressBar">
			<h1>BProgressBar</h1>
			<p>继承自<a href="BWidget.html">BWidget</a></p>
			<p id="resume">BProgressBar是进度条，在确定的范围内示意当前进度情况。<a href="#desc">详细</a></p>
			<h2>public</h2>
			<table id="public">
				<tr><td align="right"/><td><a href="#BProgressBar(BWidget*)">BProgressBar</a>(BWidget* parent = 0);</td></tr>
				<tr><td align="right"/><td><a href="#BProgressBar(const BString&,BWidget*)">BProgressBar</a>(const BString& format, BWidget* parent = 0);</td></tr>
				<tr><td align="right"/><td><a href="#BProgressBar(Orientation,BWidget*)">BProgressBar</a>(Orientation orientation, BWidget* parent = 0);</td></tr>
				<tr><td align="right"/><td><a href="#BProgressBar(const BString&, Orientation,BWidget*)">BProgressBar</a>(const BString& format, Orientation orientation, BWidget* parent = 0);</td></tr>
				<tr><td align="right"/><td><a href="#~BProgressBar()">~BProgressBar</a>();</td></tr>
				<tr><td align="right">void </td><td><a href="#setAlign(Align)">setAlign</a>(Align align);</td></tr>
				<tr><td align="right">Align </td><td><a href="#align() const">align</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setFormat(const BString&)">setFormat</a>(const BString& format);</td></tr>
				<tr><td align="right">const BString&amp; </td><td><a href="#format() const">format</a>() const;</td></tr>
				<tr><td align="right">const BString&amp; </td><td><a href="#text() const">text</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setOrientation(Orientation)">setOrientation</a>(Orientation orientation);</td></tr>
				<tr><td align="right">Orientation </td><td><a href="#orientation() const">orientation</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setValue(int)">setValue</a>(int value);</td></tr>
				<tr><td align="right">int </td><td><a href="#value() const">value</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setStep(int)">setStep</a>(int step);</td></tr>
				<tr><td align="right">int </td><td><a href="#step() const">step</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setMinimum(int)">setMinimum</a>(int minimum);</td></tr>
				<tr><td align="right">int </td><td><a href="#minimum() const">minimum</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setMaximum(int)">setMaximum</a>(int maximum);</td></tr>
				<tr><td align="right">int </td><td><a href="#maximum() const">maximum</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setRange(int, int)">setRange</a>(int minimum, int maximum);</td></tr>
				<tr><td align="right">void </td><td><a href="#setRange(const BRange&)">setRange</a>(const BRange& range);</td></tr>
				<tr><td align="right">const BRange&amp; </td><td><a href="#range() const">range</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#increase()">increase</a>();</td></tr>
				<tr><td align="right">void </td><td><a href="#decrease()">decrease</a>();</td></tr>
				<tr><td align="right">BReal </td><td><a href="#ratio() const">ratio</a>() const;</td></tr>
				<tr><td align="right">const BRect&amp; </td><td><a href="#chunkRect() const">chunkRect</a>() const;</td></tr>
				<tr><td align="right">const BRect&amp; </td><td><a href="#textRect() const">textRect</a>() const;</td></tr>
				<tr><td align="right">virtual BSize </td><td><a href="#sizeHint() const">sizeHint</a>() const;</td></tr>
				<tr><td align="right">using </td><td><a href="#BObject::query;()">BObject::query;</a></td></tr>
				<tr><td align="right">virtual bool </td><td><a href="#query(const BString&, BValue&) const">query</a>(const BString& text, BValue& value) const;</td></tr>
			</table>
			<h2>protected</h2>
			<table id="protected">
				<tr><td align="right">virtual void </td><td><a href="#resizeEvent(const BEvent&)">resizeEvent</a>(const BEvent& event);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#styleEvent(const BEvent&)">styleEvent</a>(const BEvent& event);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#freshEvent(const BEvent&)">freshEvent</a>(const BEvent& event);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#paintEvent(const BEvent&)">paintEvent</a>(const BEvent& event);</td></tr>
			</table>
			<div id="desc">
				<h2>详细介绍：</h2>
				<p>BProgressBar是进度条，在确定的范围内示意当前进度情况。在进度条上显示的文本可以指定其格式，其关键词如下：</p><table>
					<tr><td>%percent</td><td>%p</td><td>表示百分数。</td></tr>
					<tr><td>%value</td><td>%v</td><td>表示当前值。</td></tr>
					<tr><td>%minimum</td><td>%min</td><td>表示最小值。</td></tr>
					<tr><td>%maximum</td><td>%max</td><td>表示最大值。</td></tr></table><h4>信号表：</h4><table>
					<tr><td>Signal_AlignChanged</td><td>当文本对齐方式改变时发出，值为：Align align。</td></tr>
					<tr><td>Signal_OrientationChanged</td><td>当方向属性被改变时发出，值为：Orientation orientation。</td></tr>
					<tr><td>Signal_ValueChanged</td><td>当前值改变时发出，值为：int value。</td></tr>
					<tr><td>Signal_StepChanged</td><td>当单步值改变时发出，值为：int step。</td></tr>
					<tr><td>Signal_RangeChanged</td><td>当数值范围改变时发出，值为：BRange range。</td></tr></table>
			</div>
			<h2 id="docs">成员文档：</h2>
			<div id="BProgressBar(BWidget*)">
				<h3>BProgressBar(BWidget* parent = 0);</h3>
				<p>构造一个进度条，parent指定其父控件。</p>
			</div>
			<div id="BProgressBar(const BString&,BWidget*)">
				<h3>BProgressBar(const BString&amp; format, BWidget* parent = 0);</h3>
				<p>构造一个进度条，format指定其文本显示格式，parent指定其父控件。</p>
			</div>
			<div id="BProgressBar(Orientation,BWidget*)">
				<h3>BProgressBar(Orientation orientation, BWidget* parent = 0);</h3>
				<p>构造一个进度条，orientation指定其方向，parent指定其父控件。</p>
			</div>
			<div id="BProgressBar(const BString&, Orientation,BWidget*)">
				<h3>BProgressBar(const BString&amp; format, Orientation orientation, BWidget* parent = 0);</h3>
				<p>构造一个进度条，format指定其文本显示格式，orientation指定其方向，parent指定其父控件。</p>
			</div>
			<div id="~BProgressBar()">
				<h3>~BProgressBar();</h3>
				<p>析构一个进度条。</p>
			</div>
			<div id="setAlign(Align)">
				<h3>void setAlign(Align align);</h3>
				<p>设置文本的对齐方式。</p>
			</div>
			<div id="align() const">
				<h3>Align align() const;</h3>
				<p>获得文本的对齐方式。</p>
			</div>
			<div id="setFormat(const BString&)">
				<h3>void setFormat(const BString&amp; format);</h3>
				<p>设置文本格式，如“%v/%max”=》23/100。</p>
			</div>
			<div id="format() const">
				<h3>const BString&amp; format() const;</h3>
				<p>获得文本格式。</p>
			</div>
			<div id="text() const">
				<h3>const BString&amp; text() const;</h3>
				<p>获得当前的显示文本。</p>
			</div>
			<div id="setOrientation(Orientation)">
				<h3>void setOrientation(Orientation orientation);</h3>
				<p>设置方向。</p>
			</div>
			<div id="orientation() const">
				<h3>Orientation orientation() const;</h3>
				<p>获得方向。</p>
			</div>
			<div id="setValue(int)">
				<h3>void setValue(int value);</h3>
				<p>设置当前值。</p>
			</div>
			<div id="value() const">
				<h3>int value() const;</h3>
				<p>获得当前值。</p>
			</div>
			<div id="setStep(int)">
				<h3>void setStep(int step);</h3>
				<p>设置单步值。</p>
			</div>
			<div id="step() const">
				<h3>int step() const;</h3>
				<p>获得单步值。</p>
			</div>
			<div id="setMinimum(int)">
				<h3>void setMinimum(int minimum);</h3>
				<p>设置数值范围的最小值。</p>
			</div>
			<div id="minimum() const">
				<h3>int minimum() const;</h3>
				<p>获得数值范围的最小值。</p>
			</div>
			<div id="setMaximum(int)">
				<h3>void setMaximum(int maximum);</h3>
				<p>设置数值范围的最大值。</p>
			</div>
			<div id="maximum() const">
				<h3>int maximum() const;</h3>
				<p>获得数值范围的最大值。</p>
			</div>
			<div id="setRange(int, int)">
				<h3>void setRange(int minimum, int maximum);</h3>
				<p>设置数值范围。</p>
			</div>
			<div id="setRange(const BRange&)">
				<h3>void setRange(const BRange&amp; range);</h3>
				<p>设置数值范围。</p>
			</div>
			<div id="range() const">
				<h3>const BRange&amp; range() const;</h3>
				<p>获得数值范围。</p>
			</div>
			<div id="increase()">
				<h3>void increase();</h3>
				<p>当前值增加单步值。</p>
			</div>
			<div id="decrease()">
				<h3>void decrease();</h3>
				<p>当前值减少单步值。</p>
			</div>
			<div id="ratio() const">
				<h3>BReal ratio() const;</h3>
				<p>获得当前值在数值范围内的比率。</p>
			</div>
			<div id="chunkRect() const">
				<h3>const BRect&amp; chunkRect() const;</h3>
				<p>获得当前数值块显示区域。</p>
			</div>
			<div id="textRect() const">
				<h3>const BRect&amp; textRect() const;</h3>
				<p>获得当前文本的显示区域。</p>
			</div>
			<div id="sizeHint() const">
				<h3>virtual BSize sizeHint() const;</h3>
				<p>计算合适的尺寸，需要容纳数值块的大小且足够格式字符串的显示。</p>
			</div>
			<div id="BObject::query;()">
				<h3>using BObject::query;</h3>
			</div>
			<div id="query(const BString&, BValue&) const">
				<h3>virtual bool query(const BString&amp; text, BValue&amp; value) const;</h3>
				<p>查询表：</p><table>
					<tr><td>text-rect</td><td>获取文本显示区域，值为：BRect textRect。</td></tr>
					<tr><td>chunk-rect</td><td>获取数值块显示区域，值为：BRect chunkRect。</td></tr>
					<tr><td>chunk-points</td><td>获取数值块的圆角线框点集，值为：BPointfArray&amp; points。</td></tr></table>
			</div>
			<div id="resizeEvent(const BEvent&)">
				<h3>virtual void resizeEvent(const BEvent&amp; event);</h3>
				<p>标记此进度条为需要更新的。</p>
			</div>
			<div id="styleEvent(const BEvent&)">
				<h3>virtual void styleEvent(const BEvent&amp; event);</h3>
				<p>样式取值：</p><table>
					<tr><td>Value_Format</td><td>取值为格式字符串，值为：BString format。</td></tr>
					<tr><td>Value_Chunk_Size</td><td>取值为数值块的尺寸，值为：BSize chunkSize。</td></tr>
					<tr><td>Value_Orientation</td><td>取值为方向属性，值为：Orientation orientation。</td></tr></table>
			</div>
			<div id="freshEvent(const BEvent&)">
				<h3>virtual void freshEvent(const BEvent&amp; event);</h3>
			</div>
			<div id="paintEvent(const BEvent&)">
				<h3>virtual void paintEvent(const BEvent&amp; event);</h3>
			</div>
		</div>
	</body>
</html>